package com.epoch.controller;

import com.epoch.entity.TeacherCourse;
import com.epoch.service.TeacherCourseService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author admin
 */
@RestController
public class TeacherCourseController {
    @Autowired
    private TeacherCourseService teacherCourseService;

    @GetMapping("teacher-course")
    public TeacherCourse getTeacherCourseById(String csId, String courseId){
        return teacherCourseService.getTeacherCourseById(csId,courseId);
    }
}
